package com.rw.coco.model;

import com.rw.coco.api.modle.Account;

public class KookAccount implements Account {
    private final String id;
    private final String nick;
    private final String realName;

    public KookAccount(String id, String nick, String realName) {
        this.id = id;
        this.nick = nick;
        this.realName = realName;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getNick() {
        return nick == null ? realName : nick;
    }

    @Override
    public String getRealName() {
        return realName;
    }
}
